<template>
  <div>
    <elm-page-tb>
      <template #top>
        <el-input placeholder="请查询输入内容" size="mini" prefix-icon='el-icon-search' style="width:250px;" v-model="postData.name" clearable></el-input>
        <right>
          <el-button-group>
            <el-button icon="el-icon-search" size="mini" @click="tablebinding()">查询</el-button>
            <elm-open-button url="follow_edit" title="新增"  width="900" height="90%">新增</elm-open-button>
          </el-button-group>
        </right>
      </template>
      <elm-table url="/business/crm/follow/GetData" :post-data="postData">
        <el-table-column prop="gjkh_mc" label="客户"  align="left" header-align="center"  width="200"></el-table-column>
        <el-table-column prop="gjr_mc" label="跟进人" align="center"   width="120"></el-table-column>
        <el-table-column prop="gjsj" label="时间" align="left" header-align="center"  width="180"  :formatter="formatDateTime"></el-table-column>
        <el-table-column prop="gjxx" label="跟进信息" align="left" header-align="center"  width="200"></el-table-column>
        <el-table-column prop="gjfs" label="跟进方式" align="center"  width="120"></el-table-column>
        <el-table-column prop="gjjg" label="结果" align="center"   width="200"></el-table-column>
        <el-table-column prop="khxq" label="痛点需求" align="left" header-align="center" width="200"></el-table-column>
        <el-table-column prop="glxs" label="关联线索" align="center" width="200"></el-table-column>
        <el-table-column prop="glsj" label="关联商机" align="center"  width="200"></el-table-column>
        <el-table-column prop="remark" label="备注" align="left" header-align="center"></el-table-column>
        <el-table-column fixed="right" label="操作" width="120px" align="center">
          <template v-slot="scope">
            <elm-open-button url="follow_edit" title="编辑"   width="900" height="90%" :data="{ model: scope.row }" type="text">编辑</elm-open-button>
            <elm-delete-button  type="text" size="mini" url="/business/crm/follow/Delete" :data="{ id: scope.row.id }">删除</elm-delete-button>
          </template>
        </el-table-column>
      </elm-table>
    </elm-page-tb>
  </div>

</template>

<script>
export default {
  extends: elmVueBase,
  data() {
    return {
      postData: { name: null}
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
